<?php
class WPaymentWireAuthorize extends USystemWorklet
{	
	public function accessRules()
	{
		return array(
			array('deny', 'users'=>array('?'))
		);
	}
	
	public function run($items,$orderId=null,$options=array())
	{
		$html = strtr($this->module->param('info'),array(
			'{orderID}' => $orderId
		));
		
		wm()->get('base.init')->addToJson(array(
			'content' => array(
				'replace' => $html,
				'focus' => true,
			),
		));
	}
}